<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看订单主表明细</title>
</head>
<body>
<form>
    <table border="1">
        <tr><td colspan="2"><h1>查看订单主表明细</h1></td></tr>
        <tr>
            <td>订单ID</td>
            <td>
                   <span id="orderId"></span>
            </td>
        </tr>
        <tr>
            <td>订单编号 yyyymmddnnnnnnnn</td>
            <td>
                   <span id="orderSn"></span>
            </td>
        </tr>
        <tr>
            <td>下单人ID</td>
            <td>
                   <span id="customerId"></span>
            </td>
        </tr>
        <tr>
            <td>省</td>
            <td>
                   <span id="province"></span>
            </td>
        </tr>
        <tr>
            <td>市</td>
            <td>
                   <span id="city"></span>
            </td>
        </tr>
        <tr>
            <td>地址</td>
            <td>
                   <span id="address"></span>
            </td>
        </tr>
        <tr>
            <td>回购方式:1上门回收,2邮寄</td>
            <td>
                   <span id="recycleMethod"></span>
            </td>
        </tr>
        <tr>
            <td>订单金额</td>
            <td>
                   <span id="orderMoney"></span>
            </td>
        </tr>
        <tr>
            <td>下单时间</td>
            <td>
                   <span id="createTime"></span>
            </td>
        </tr>
        <tr>
            <td>到账时间</td>
            <td>
                   <span id="payTime"></span>
            </td>
        </tr>
        <tr>
            <td>订单状态</td>
            <td>
                   <span id="orderStatus"></span>
            </td>
        </tr>
        <tr>
            <td>订单积分</td>
            <td>
                   <span id="orderPoint"></span>
            </td>
        </tr>
        <tr>
            <td>最后修改时间</td>
            <td>
                   <span id="modifiedTime"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other1"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other2"></span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="button" id="fanhui" value="返回"/>
            </td>
        </tr>
    </table>
</form>
<script src="/js/jquery-1.12.4.js"></script>
<script>
    var param = location.href.substring(location.href.indexOf('?')+1);
    $.getJSON("/ordermaster/findById.json",param,function(detail){
        $("#orderId").text(detail.orderId);
        $("#orderSn").text(detail.orderSn);
        $("#customerId").text(detail.customerId);
        $("#province").text(detail.province);
        $("#city").text(detail.city);
        $("#address").text(detail.address);
        $("#recycleMethod").text(detail.recycleMethod);
        $("#orderMoney").text(detail.orderMoney);
        $("#createTime").text(detail.createTime);
        $("#payTime").text(detail.payTime);
        $("#orderStatus").text(detail.orderStatus);
        $("#orderPoint").text(detail.orderPoint);
        $("#modifiedTime").text(detail.modifiedTime);
        $("#other1").text(detail.other1);
        $("#other2").text(detail.other2);
    });
    $("#fanhui").click(function(){
        location.href="/admin/ordermaster/list.html";
    });
</script>

</body>
</html>